<?php
class MD5_Datatype extends DatatypeBase{
	
	var $length = 32;
	var $type 	= 'varchar';
	
	
	function edit($value, $name, $extra = array()){
		$extra['type'] = 'password';
		return parent::edit($value, $name, $extra);
	}
	
	function prepareDatatypeVal($value){
		return md5($value);
	}
}	




?>
